package com.xiaogao.sys.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.StringSerializer;
import lombok.*;

import java.time.LocalDateTime;


@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class SysLogOperateResponse {
    @JsonSerialize(using = StringSerializer.class)
    private String id;
    private String operateType;
    private String host;
    @JsonSerialize(using = StringSerializer.class)
    private String ownerId;
    private String url;
    private String requestType;
    private String params;
    private String status;
    private String message;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime startTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime endTime;

    private String ownerRealName;
    private String ownerUsername;
}
